package pl.edu.agh.utils;

import org.apache.log4j.Logger;
import org.jgap.InvalidConfigurationException;
import org.jgap.gp.IGPProgram;
import org.jgap.gp.impl.BranchTypingCross;
import org.jgap.gp.impl.GPConfiguration;
import org.jgap.gp.impl.ProgramChromosome;

public class BranchTypingCrossLogger extends BranchTypingCross{
    private Logger log = Logger.getLogger(BranchTypingCrossLogger.class);

    public BranchTypingCrossLogger(GPConfiguration a_config) {
        super(a_config);
    }

    @Override
    public IGPProgram[] operate(IGPProgram a_i1, IGPProgram a_i2) {
        log.debug("Entering operate");
        return super.operate(a_i1, a_i2);
    }

    @Override
    protected ProgramChromosome[] doCross(ProgramChromosome a_c0, ProgramChromosome a_c1) throws InvalidConfigurationException {
        log.debug("Entering doCross");
        return super.doCross(a_c0, a_c1);
    }
}
